﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
//using mojoPortal.Net;
//using mojoPortal.Web

namespace mojoPortal.Web.RS.AppCode.Lib
{
    public class RSSMTPMailer : System.Web.UI.UserControl
    {
        //public static void SendEmail(string from,string to,string cc,string bcc,string subject,string message,bool isHtml,string priority)
        //{
        //    SmtpSettings smtpSettings = SiteUtils.GetSmtpSettings();
        //    Email.SendEmail(
        //    smtpSettings,
        //    from,
        //    to,
        //    cc,
        //    bcc,
        //    subject,
        //    message,
        //    isHtml,
        //    priority);
        //}
        //public static void SendEmailToQueue(List<string> myEmails, string from, string mySubject, string myMessage)
        //{
        //    SmtpSettings smtpSettings = SiteUtils.GetSmtpSettings();
        //    foreach (string email in myEmails)
        //    {
        //        EmailMessageTask messageTask = new EmailMessageTask(smtpSettings);
        //        messageTask.EmailFrom = from;
        //        messageTask.EmailTo = email;
        //        messageTask.Subject = mySubject;
        //        messageTask.TextBody = myMessage;
        //        messageTask.SiteGuid = siteSettings.SiteGuid;
        //        messageTask.QueueTask();
        //    }
        //    WebTaskManager.StartOrResumeTasks();
        //}
    }
}